﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Royaumes_Libres.Database;

namespace Royaumes_Libres
{
    public partial class ucMenuMap : System.Web.UI.UserControl
    {
        cUsers User;

        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session[Properties.Settings.Default.ObjUser] != null)
            {
                User = (cUsers)Session[Properties.Settings.Default.ObjUser];
                GetMenu();
            }

        }

        protected void GetMenu()
        {
            this.menuMap.Items.Clear();

            this.menuMap.Items.Add(new MenuItem(cText.GetText("Map").ToUpper(), cText.GetText("Map"), "", "usermap.aspx"));
            this.menuMap.Items.Add(new MenuItem(cText.GetText("Const").ToUpper(), cText.GetText("Const"), "", "userbuilding.aspx"));
            this.menuMap.Items.Add(new MenuItem(cText.GetText("Population").ToUpper(), cText.GetText("Population"), "", "userpop.aspx"));
            this.menuMap.Items.Add(new MenuItem(cText.GetText("Army").ToUpper(), cText.GetText("Army"), "", "userarmy.aspx"));
            this.menuMap.Items.Add(new MenuItem(cText.GetText("Combat").ToUpper(), cText.GetText("Combat"), "", "usercombat.aspx"));
            this.menuMap.Items.Add(new MenuItem(cText.GetText("Alliance").ToUpper(), cText.GetText("Alliance"), "", "useralliance.aspx"));
            this.menuMap.Items.Add(new MenuItem(cText.GetText("Market").ToUpper(), cText.GetText("Market"), "", "usermarket.aspx"));
        }
    }
}